All Functions Used So Far, Week 2

median

{stats}

Get median of a vector

setwd

{base}

Set Working Directory

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

c

{base}

Combine values/vectors into a vector

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

summary

{base}

Obtain summary statistics or detailed regression output

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

library

{base}

Load an R package

leveneTest

{car}

Computes Levene’s test for homogeneity of variance across groups.

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

ordered

{dplyr}

Create an ordered factor

cut

{base}

Convert Numeric to Factor

round

{base}

Rounds numbers

with

{base}

evaluate expression in the context of a data frame

mean

{base}

Get mean of a vector

mutate

{dplyr}

Modify/create a column in a data frame

prop.test

{stats}

Test of Equal or Given Proportions

The end!